using System.Windows;
using NavigateExample.ViewModels;
using NavigateExample.Services.Navigation;

namespace NavigateExample.Views
{
    /// <summary>
    /// MainView.xaml 的交互逻辑
    /// </summary>
    public partial class MainView : Window
    {     
        public MainView(MainViewModel viewModel, INavigationService navigationService)
        {
            InitializeComponent();
            DataContext = viewModel;
            // 初始化导航服务的容器控件
            navigationService.SetNavigationControl(NavigationContainer);
        }
    }
}